package com.agile.leetcode.enumdemo;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/12/21 22:18
 */
public enum ShopCode {
    SHOP_SUCCESS(true,200,"成功"),
    SHOP_FAIL(false,500,"失败"),
    SHOP_ORDER_FAIL(false,400,"订单失效");
    boolean succuss;
    Integer code;
    String message;
    ShopCode() {
    }

    ShopCode(boolean succuss, Integer code, String message) {
        this.succuss = succuss;
        this.code = code;
        this.message = message;
    }

    public boolean isSuccuss() {
        return succuss;
    }

    public void setSuccuss(boolean succuss) {
        this.succuss = succuss;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
